package com.fg.pro.model.trade.dto;

import lombok.Data;

import java.util.List;

@Data
public class GmWarehouseDto {

    @Data
    public class GmWarehouseRequest {

        public Page paging;

        public GmWarehouseRequest gmWarehouseRequest(int limit) {
            Page page = new Page();
            page.setLimit(limit);
            GmWarehouseRequest gmCustomerRequest = new GmWarehouseRequest();
            gmCustomerRequest.setPaging(page);
            return gmCustomerRequest;
        }

        @Data
        public class Page {
            public int limit;
        }
    }


    @Data
    public class GmWarehouseReponse {
        public List<WarehouseData> warehouses;

        @Data
        public class WarehouseData{
            public Long warehouse_id;
            public Long create_time;
            public Long update_time ;
            public Long group_id;
            public Long station_id;
            public String customized_code;
            public String name;
            public String address;
            public Geotag geotag;
            public String contact;
            public String phone;
            public Boolean valid;
            public Boolean is_default;
            @Data
            public class Geotag{
                public Double latitude;
                public Double longitude;
            }
        }
    }

}
